package com.u.social.multimedia.service;


import com.u.social.multimedia.model.VideoMeta;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public interface IVideoService {


    // 处理视频文件上传
    Boolean submitVideo(MultipartFile file, VideoMeta videoMeta);

    String processAndUploadVideo(VideoMeta videoMeta) throws Exception ;

    ResponseEntity<Resource> getVideoManifest(String videoId);

    ResponseEntity<Resource> getVideoSegment(String videoId, String segmentId);
}
